import request from '@/utils/request'

// 查询文章类型列表
export function listArticletype(query) {
  return request({
    url: '/sysmanagement/articletype/list',
    method: 'get',
    params: query
  })
}

// 查询文章类型详细
export function getArticletype(id) {
  return request({
    url: '/sysmanagement/articletype/' + id,
    method: 'get'
  })
}

// 新增文章类型
export function addArticletype(data) {
  return request({
    url: '/sysmanagement/articletype',
    method: 'post',
    data: data
  })
}

// 修改文章类型
export function updateArticletype(data) {
  return request({
    url: '/sysmanagement/articletype',
    method: 'put',
    data: data
  })
}

// 删除文章类型
export function delArticletype(id) {
  return request({
    url: '/sysmanagement/articletype/' + id,
    method: 'delete'
  })
}
